home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / azpzip / _setup.1 / frmOpen.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-11-25  |  6.2 KB  |  196 lines

  1. VERSION 5.00
  2. Begin VB.Form frmOpen 
  3.    BorderStyle     =   4  'Fixed ToolWindow
  4.    Caption         =   "Open Archive"
  5.    ClientHeight    =   3570
  6.    ClientLeft      =   45
  7.    ClientTop       =   285
  8.    ClientWidth     =   4695
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   3570
  13.    ScaleWidth      =   4695
  14.    ShowInTaskbar   =   0   'False
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin VB.CommandButton cmdOpen 
  17.       Caption         =   "&Open"
  18.       Default         =   -1  'True
  19.       BeginProperty Font 
  20.          Name            =   "Tahoma"
  21.          Size            =   8.25
  22.          Charset         =   0
  23.          Weight          =   400
  24.          Underline       =   0   'False
  25.          Italic          =   0   'False
  26.          Strikethrough   =   0   'False
  27.       EndProperty
  28.       Height          =   375
  29.       Left            =   0
  30.       TabIndex        =   7
  31.       Top             =   3120
  32.       Width           =   1095
  33.    End
  34.    Begin VB.CommandButton cmdCancel 
  35.       Caption         =   "&Cancel"
  36.       BeginProperty Font 
  37.          Name            =   "Tahoma"
  38.          Size            =   8.25
  39.          Charset         =   0
  40.          Weight          =   400
  41.          Underline       =   0   'False
  42.          Italic          =   0   'False
  43.          Strikethrough   =   0   'False
  44.       EndProperty
  45.       Height          =   375
  46.       Left            =   1200
  47.       TabIndex        =   6
  48.       Top             =   3120
  49.       Width           =   1095
  50.    End
  51.    Begin VB.Frame frFileSelect 
  52.       Caption         =   "File Select"
  53.       BeginProperty Font 
  54.          Name            =   "Tahoma"
  55.          Size            =   8.25
  56.          Charset         =   0
  57.          Weight          =   700
  58.          Underline       =   0   'False
  59.          Italic          =   0   'False
  60.          Strikethrough   =   0   'False
  61.       EndProperty
  62.       Height          =   2895
  63.       Left            =   0
  64.       TabIndex        =   0
  65.       Top             =   0
  66.       Width           =   4695
  67.       Begin VB.FileListBox flbCopy 
  68.          BeginProperty Font 
  69.             Name            =   "Tahoma"
  70.             Size            =   8.25
  71.             Charset         =   0
  72.             Weight          =   400
  73.             Underline       =   0   'False
  74.             Italic          =   0   'False
  75.             Strikethrough   =   0   'False
  76.          EndProperty
  77.          Height          =   2040
  78.          Left            =   2520
  79.          TabIndex        =   3
  80.          Top             =   675
  81.          Width           =   2055
  82.       End
  83.       Begin VB.DirListBox dirCopy 
  84.          BeginProperty Font 
  85.             Name            =   "Tahoma"
  86.             Size            =   8.25
  87.             Charset         =   0
  88.             Weight          =   400
  89.             Underline       =   0   'False
  90.             Italic          =   0   'False
  91.             Strikethrough   =   0   'False
  92.          EndProperty
  93.          Height          =   2115
  94.          Left            =   120
  95.          TabIndex        =   2
  96.          Top             =   675
  97.          Width           =   2295
  98.       End
  99.       Begin VB.DriveListBox drvList 
  100.          BeginProperty Font 
  101.             Name            =   "Tahoma"
  102.             Size            =   8.25
  103.             Charset         =   0
  104.             Weight          =   400
  105.             Underline       =   0   'False
  106.             Italic          =   0   'False
  107.             Strikethrough   =   0   'False
  108.          EndProperty
  109.          Height          =   315
  110.          Left            =   120
  111.          TabIndex        =   1
  112.          Top             =   240
  113.          Width           =   4455
  114.       End
  115.    End
  116.    Begin VB.Frame frSearch 
  117.       Caption         =   "Search Pattern"
  118.       BeginProperty Font 
  119.          Name            =   "Tahoma"
  120.          Size            =   8.25
  121.          Charset         =   0
  122.          Weight          =   700
  123.          Underline       =   0   'False
  124.          Italic          =   0   'False
  125.          Strikethrough   =   0   'False
  126.       EndProperty
  127.       Height          =   680
  128.       Left            =   2400
  129.       TabIndex        =   4
  130.       Top             =   2880
  131.       Width           =   2295
  132.       Begin VB.TextBox txtFiles 
  133.          BeginProperty Font 
  134.             Name            =   "Tahoma"
  135.             Size            =   8.25
  136.             Charset         =   0
  137.             Weight          =   400
  138.             Underline       =   0   'False
  139.             Italic          =   0   'False
  140.             Strikethrough   =   0   'False
  141.          EndProperty
  142.          Height          =   315
  143.          Left            =   120
  144.          TabIndex        =   5
  145.          Text            =   "*.az"
  146.          Top             =   240
  147.          Width           =   2055
  148.       End
  149.    End
  150. Attribute VB_Name = "frmOpen"
  151. Attribute VB_GlobalNameSpace = False
  152. Attribute VB_Creatable = False
  153. Attribute VB_PredeclaredId = True
  154. Attribute VB_Exposed = False
  155. Private Sub cmdCancel_Click()
  156.     Unload Me
  157. End Sub
  158. Private Sub cmdOpen_Click()
  159. Dim SrcFile As String
  160.     If Len(flbCopy.FileName) > 1 Then
  161.         If Right(dirCopy.Path, 1) <> "\" Then
  162.         frmAZPCoDec.ActiveZipperPro1.SourceFile = flbCopy.Path & "\" & flbCopy.FileName
  163.         Else
  164.         frmAZPCoDec.ActiveZipperPro1.SourceFile = flbCopy.Path & flbCopy.FileName
  165.         End If
  166.     End If
  167.     SrcFile = frmAZPCoDec.ActiveZipperPro1.SourceFile
  168.     'Set Destination file
  169.     frmAZPCoDec.ActiveZipperPro1.Destination = flbCopy.Path
  170.     frmAZPCoDec.Caption = "ActiveZipper Pro Demo - " & SrcFile
  171.     frmAZPCoDec.stat.Panels(1).Text = "Reading file..."
  172.     If UseZip = True Then
  173.     DisplayZipContents SrcFile
  174.     Else
  175.     DisplayFile SrcFile
  176.     End If
  177.     frmAZPCoDec.stat.Panels(1).Text = "No Task..."
  178.     Unload Me
  179. End Sub
  180. Private Sub dirCopy_Change()
  181.     flbCopy.Path = dirCopy.Path
  182. End Sub
  183. Private Sub drvList_Change()
  184.     dirCopy.Path = drvList.Drive
  185. End Sub
  186. Private Sub Form_Load()
  187. If UseZip = True Then
  188. txtFiles.Text = "*.zip"
  189. txtFiles.Text = "*.az"
  190. End If
  191.     flbCopy.Pattern = txtFiles.Text
  192. End Sub
  193. Private Sub txtFiles_Change()
  194.     flbCopy.Pattern = txtFiles.Text
  195. End Sub
  196.